package com.web_bloks.document.client;

/**
 * BaseDocumentStore
 * 
 * @author Jean-Lou Dupont
 *
 */
abstract public class BaseDocumentStore {

	public BaseDocumentStore() {
		super();
	}
	
	abstract public boolean exists();
	
	abstract public boolean isPersistent() throws DocumentStoreException;
	
	abstract public boolean initialize() throws DocumentStoreException;
	
	abstract public void put(Document doc) throws DocumentStoreException;
	
	abstract public void delete(String key) throws DocumentStoreException;
	
	abstract public Document get(String key) throws DocumentStoreException;
	
	abstract public void clear() throws DocumentStoreException;
	
	abstract public void clearNamespace(Namespace ns) throws DocumentStoreException;
	
}//END